package tan.dft.listviewlotrinh;

import tan.dft.gps.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

public class LotrinhLayoutItem extends LinearLayout {

	public TextView lotrinhidmayql, lotrinhidmay, lotrinhdate, lotrinhlat,
			lotrinhlng, lotrinhthoigian;
	public ListView listView;

	public LotrinhLayoutItem(Context context) {
		super(context);

		// tai day se thuc hien viec bien ca nhom view cau tao len item cua
		// listview
		// thanh 1 view duy nhat (LayoutInflater)
		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE); // khoi tao
																	// lop
																	// LayoutInflater
																	// nho he
																	// thong
		inflater.inflate(R.layout.lotrinhitem, this, true);

		// khoi tao tat ca cac thanh phan cau tao len item cua listview (no o
		// trong layout co ten la itemstudent)
		lotrinhidmayql = (TextView) findViewById(R.id.idmayql);
		lotrinhidmay = (TextView) findViewById(R.id.idmay);
		lotrinhdate = (TextView) findViewById(R.id.date);
		lotrinhlat = (TextView) findViewById(R.id.lat);
		lotrinhlng = (TextView) findViewById(R.id.lng);
		lotrinhthoigian = (TextView) findViewById(R.id.thoigian);

	}
}
